<!--<?php
print <<<EOT
-->

<script>
<!--


function pt() {

	var element2 = document.getElementById("hidden2");

	element2.innerHTML = "";
	window.print();
}

//-->
</script>

						<table width="99%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">        			    		
        			    		<tr><td colspan=11 align="left" class="titles">多谢你的订单。</td></tr>
        			    		<tr><td colspan=11 height=5></td></tr>
        			    		<tr><td colspan=11 height=5></td></tr>
        			    		
        			    		<tr><td colspan=11>我们将尽快电邮一份正式的订货单给您。</td></tr>
        			    		<tr><td colspan=11 height=5></td></tr>
        			    		
        			    		
        			    		<tr><td colspan=11 height=5></td></tr>
        			    		
        			    		
        			    		<tr><td colspan=11>
                			      <table width="100%" border="0" cellspacing="0" cellpadding="0">        			    	
                			        <tr><td align="right" width="100"><strong>订单追踪编号</strong> :</td><td align="left" >&nbsp;$orderid</td></tr>
                			        <tr><td align="right" ><strong>顾客</strong> :</td><td align="left" >&nbsp;{$user_info_ary['firstname']} {$user_info_ary['lastname']}</td></tr>
        			    		    <tr><td align="right" ><strong>城市</strong> :</td><td align="left" >&nbsp;{$user_info_ary['city']}</td></tr>
        			    		    <tr><td align="right"><strong>国家</strong> :</td><td align="left" >&nbsp;{$COUNTRY_ARY[$user_info_ary['countryid']]}</td></tr>
        			    		  </table>
        			    		</td></tr>

        			    		<tr><td colspan=11 height=5></td></tr>
        			    		<tr><td colspan=11 height=5></td></tr>	
        			    		<tr><td colspan=11 bgcolor="#000000" height=1></td></tr>		
        			    															
        						<tr class="cartAlternatingRowB"  height="30">
        						    <td align="center" valign="middle" class="cartHeading" width="40"></td>
			    			        <td align="center" valign="middle" class="cartHeading" width="15"></td>
        			    			<td align="left" valign="middle" class="cartHeading" width="70">型号</td>
        			    			<td align="left" valign="middle" class="cartHeading" width="170" colspan=2 >明细</td>
									<td align="right" valign="middle" class="cartHeading" width="10"></td>
			    			        <td align="left" valign="middle" class="cartHeading" width="50">漆色</td>
									
									<td align="left" valign="middle" class="cartHeading" width="60">面料 /<br>皮料</td>
        			    			<td align="right" valign="middle" class="cartHeading" width="60">价格<br>{$money_type}</td>
        			    			<td align="right" valign="middle" class="cartHeading" width="50">数量</td>
        			    			<td align="right" valign="middle" class="cartHeading" width="70">总计<br>{$money_type}</td>
        						</tr>
        						<tr><td colspan=11 bgcolor="#A5AAB0" height=1></td></tr>
        						<tr><td colspan=11 bgcolor="#FFFFFF" height=4></td></tr>
			
<!--
EOT;
foreach ($info_ary as $k=>$v) {
    @list($type, $k, $fitemid,$fabid,$leaid) = explode("_", $k);
    $location = $v['intype'] == 0 ? 'Products' : $location_info_ary[$v['intype']];
    if (trim($all_product_info_ary[$k]['small_pic']) == "" || !file_exists("attachments/" . $all_product_info_ary[$k]['small_pic'])) {
        $all_product_info_ary[$k]['small_pic'] = 'no_40.gif';
    }
    $v['price']  = number_format($v['price'], 2, '.', ',');
	$v['cost']   = number_format($v['cost'], 2, '.', ',');
	
	if(trim($all_product_info_ary[$k]['namezh'])!="")
	  $vname=$all_product_info_ary[$k]['namezh'];
	else
	 $vname=$v['name'];
	 $fabric_choice = ! empty($v['fabid']) ? $_fabric_item[$v['fabid']] : $_leather_item[$v['leaid']];
print <<<EOT
-->
        			            <tr class="cartAlternatingRowB1" height=45>
        			                <td align="left" valign="middle"><img src="attachments/{$all_product_info_ary[$k]['small_pic']}" border="0" class="picture" width="40" height="40"></td>
			    			        <td align="center" valign="middle"></td>			    			
        			    			<td align="left" valign="middle">{$v['code']}</td>
									<td align="left" valign="top" colspan=2 class="cartmiddle">$vname</td>
									<td align="right" valign="middle"></td>
        			    		<!--	<td align="left" valign="top" colspan=2 class="cartmiddle">{$v['name']}</td>-->
			    			        <td align="left" valign="middle">{$_finish_item[$fitemid]}</td>
									
									<td align="left" valign="middle">{$fabric_choice}</td>
        			    			<td align="right" valign="middle">{$v['price']}</td>
        			    			<td align="right" valign="middle">{$v['count']}</td>
        			    			<td align="right" valign="middle">{$v['cost']}</td>
        						</tr>

<!--
EOT;
} 
$total_cost  = number_format($total_cost, 2, '.', ',');
print <<<EOT
--> 
        						<tr><td colspan=11 bgcolor="#A5AAB0" height=1></td></tr>
        						<tr>
        						  <td colspan=9 height=25 align="right"><strong>总计</strong> :</td>
								  <td align="right">$total_qty</td>
								  <td align="right">$total_cost</td>
        						</tr>        						
        						
        						</td></tr>
        						</table>						
                      
                              
                            
                            </td>
                          </tr>
                          <tr>
                            <td align="right" valign="bottom"><div class="paragraphSpacer"><img name="" src="./images/spacer.gif" width="0" height="0" alt=""></div>
                              <div align="right"><img src="./images/colour/jf_colour_gold_100.gif" alt="Gold Accent" name="jf_colour_gold_100" width="10" height="10" id="jf_colour_gold_100"></div></td>
                          </tr>
                        </table>

<!--
EOT;
?>-->